import { getAction, deleteAction, putAction, postAction, downFilePost } from '@/api/manage'

const serviceName = '/incident-server'
/*-----------模型-----------*/
//获取所有任务列表
const getAllList = (params) => getAction(`${serviceName}/incidentTask/getAllList`, params)
//分页查询-模型任务下的目标对象（有更新时间）
const getModelTaskUser = (params) => getAction(`${serviceName}/incidentTaskUser/queryModelTaskUser`, params)
/*-----------上网行为-----------*/
//上网行为-获取个人访问信源列表
const gePersonalList = (params) => getAction(`${serviceName}/fzx/incident/internet_behavior/personal/getListBy`, params)
//上网行为-信源统计列表
const getSummaryOverviewBy = (params) => getAction(`${serviceName}/fzx/incident/internet_behavior/source/getSummaryOverviewBy`, params)
//指定案事件任务的ID，获取信源访问趋势
const getSumarryDateTrendBy = (params) => getAction(`${serviceName}/fzx/incident/internet_behavior/source/getSumarryDateTrendBy`, params)
//指定案事件任务的ID，获取访问时段分布
const getSumarryHourTrendBy = (params) => getAction(`${serviceName}/fzx/incident/internet_behavior/source/getSumarryHourTrendBy`, params)
//指定案事件任务的ID，获取用户访问信源次数 TOP10
const getSumarryTopBy = (params) => getAction(`${serviceName}/fzx/incident/internet_behavior/source/getSumarryTopBy`, params)
//执行更新数据的动作[个人访问信源]
const personalDoFetch = (params) => getAction(`${serviceName}/fzx/incident/internet_behavior/personal/doFetch`, params)
//执行更新数据的动作[信源统计]
const sourceDoFetch = (params) => getAction(`${serviceName}/fzx/incident/internet_behavior/source/doFetch`, params)
/*-----------团伙关系-----------*/
//团伙关系-查询重点人列表
const getPeopleList = (params) => getAction(`${serviceName}/gangRelations/getPeopleList`, params)
//团伙关系-内外部
const getChartList = (params) => getAction(`${serviceName}/gangRelations/getChartList`, params)
//团伙关系-阈值查询
const getThreshold = (params) => getAction(`${serviceName}/gangRelations/getThreshold`, params)
//团伙关系-阈值设置
const setThreshold = (params) => putAction(`${serviceName}/gangRelations/setThreshold`, params)
//团伙关系-获取任务详情
const getGangRelations = (params) => getAction(`${serviceName}/gangRelations/get`, params)
//团伙关系-更新数据
const updateGangsRelationData = (params) => postAction(`${serviceName}/gangRelations/updateGangsRelationData`, params)
//一人多机
const multiplePhonesList = (params) => getAction(`${serviceName}/fzx/incident/multiple_phones/getListBy`, params)
const multiplePhonesDoFetch = params => getAction(`${serviceName}/fzx/incident/multiple_phones/doFetch`, params)
//换机
const changeImeiList = (params) => getAction(`${serviceName}/fzx/incident/change_imei/getListBy`, params)
const changeImeiDoFetch = params => getAction(`${serviceName}/fzx/incident/change_imei/doFetch`, params)
//换卡
const changeImsiList = (params) => getAction(`${serviceName}/fzx/incident/change_imsi/getListBy`, params)
const changeImsiDoFetch = params => getAction(`${serviceName}/fzx/incident/change_imsi/doFetch`, params)
//时空碰撞
const selectTimeSpaceCollisionTaskList = (params) => getAction(`/spacetime-collision-server/timeSpaceCollision/selectTimeSpaceCollisionTaskList`, params)
const saveTimeSpaceCollisionTask = params => postAction(`/spacetime-collision-server/timeSpaceCollision/saveTimeSpaceCollisionTask`, params)
const getTimeSpaceCollisionTaskResult = (params) => getAction(`/spacetime-collision-server/timeSpaceCollision/getTimeSpaceCollisionTaskResult`, params)
const timeSpaceCollisionAudit = (params) => postAction(`/spacetime-collision-server/timeSpaceCollision/audit`, params)
//人物画像
const getPhoneInfo = (params) => getAction(`portrait-server/common/getPhoneInfo`, params)
const getVirtualIdentityPage = (params) => getAction(`portrait-server/common/getVirtualIdentityPage`, params)
const getThreeCodePage = (params) => getAction(`portrait-server/common/getThreeCodePage`, params)
const getActiveAreaInfoPage = (params) => getAction(`portrait-server/common/getActiveAreaInfoPage`, params)
const updateVirutalIdentity = (params) => getAction(`/portrait-server/common/updateVirutalIdentity`, params)
const updateThreeCode = (params) => getAction(`/portrait-server/common/updateThreeCode`, params)
const updateActiveAreaInfo = (params) => getAction(`/portrait-server/common/updateActiveAreaInfo`, params)
// cgcs2000坐标系和百度地图坐标转换
const getCs2000ToBD09 = (params) => getAction(`/portrait-server/common/getCs2000ToBD09`, params)









/*-----------通信行为-----------*/
//通联记录-分页列表查询
const getContactRecordPage = (params) => getAction(`/portrait-server/common/getContactRecordPage`, params)
//获取手机号码-通联关系图
const getContactRelationPage = (params) => getAction(`/portrait-server/common/getContactRelationPage`, params)
//获取单个手机号码-通联记录（更新数据）
const updateContactRecord = (params) => postAction(`/portrait-server/common/updateContactRecord`, params)
//获取手机号码-通联关系图（更新数据）（包括更新通联记录）
const updateContactRelation = (params) => getAction(`/portrait-server/common/updateContactRelation`, params)

//历史轨迹
const queryPageByTask= (params) => getAction(`/trajectory-server/trajectory/queryPageByTask`, params)
//历史轨迹位置信息-查询接口
const queryHistoryTrajectory= (params) => postAction(`/trajectory-server/trajectory/queryHistoryTrajectory`, params)
//获取号码轨迹详情
const queryDetailByPhone= (params) => postAction(`/trajectory-server/trajectory/queryDetailByPhone`, params)
//最新位置信息-查询接口
const queryRealTimeTrajectory= (params) => postAction(`/trajectory-server/trajectory/queryRealTimeTrajectory`, params)








export {
  getAllList,
  getModelTaskUser,
  gePersonalList,
  getSummaryOverviewBy,
  getSumarryDateTrendBy,
  getSumarryHourTrendBy,
  getSumarryTopBy,
  personalDoFetch,
  sourceDoFetch,
  getPeopleList,
  getChartList,
  getThreshold,
  setThreshold,
  getGangRelations,
  updateGangsRelationData,
  multiplePhonesList,
  multiplePhonesDoFetch,
  changeImeiList,
  changeImeiDoFetch,
  changeImsiList,
  changeImsiDoFetch,
  selectTimeSpaceCollisionTaskList,
  saveTimeSpaceCollisionTask,
  getTimeSpaceCollisionTaskResult,
  timeSpaceCollisionAudit,
  getPhoneInfo,
  getVirtualIdentityPage,
  getThreeCodePage,
  getActiveAreaInfoPage,
  updateVirutalIdentity,
  updateThreeCode,
  updateActiveAreaInfo,
  getContactRecordPage,
  getContactRelationPage,
  updateContactRecord,
  updateContactRelation,
  queryPageByTask,
  queryHistoryTrajectory,
  queryDetailByPhone,
  queryRealTimeTrajectory,
  getCs2000ToBD09
}
